import  os;
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
list2 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
file = open('D:\PythonWorkspace\huangcui.txt','w',encoding='utf-8')
for i in list1:
    for j in list2:
        if j <= i:
            sum1 = j * i
            file.write(str(j)+"*"+str(i)+"="+str(sum1)+"    ")
    file.write("\n")
file.close()




